package cn.tedu.csmallproductzxj.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AttributeTemplateUpdateDTO implements Serializable {

    @ApiModelProperty(value = "属性名称",required = true,example = "华为matebook 16s")
    @NotBlank(message = "必须提交属性模板名字")
    private String name;

    @ApiModelProperty(value = "属性拼音",required = true,example = "HuaWei")
    @NotNull(message = "必须提交属性模板拼音")
    private String pinyin;

    @ApiModelProperty(value = "属性关键字",required = true,example = "华为电脑")
    @NotNull(message = "必须提交属性模板关键字")
    private String keywords;

    @ApiModelProperty(value = "属性顺序",required = true,example = "100")
    @NotNull(message = "必须提交属性模板顺序")
    private Integer sort;
}
